import request from '@/utils/request'

// 所有购买大课时
export const buyAllBigClass = data => {
  return request({
    method: 'POST',
    url: '/theclass/getBuyComboClass',
    data
  })
}
// 所有的年级
export const allgrade = () => {
  return request({
    method: 'POST',
    url: '/theclass/getgrade'
  })
}
// 获取所有大课时
export const allBigClass = data => {
  return request({
    method: 'POST',
    url: '/theclass/getComboClass',
    data
  })
}
// 查询用户购买的大课时
export const alerdayclass = data => {
  return request({
    method: 'POST',
    url: '/theclass/getBuyComboClass',
    data
  })
}

// 获取所属小课时
export const detailList = data => {
  return request({
    method: 'POST',
    url: '/theclass/getTheClass',
    data
  })
}

// 买大课时
export const bigClass = data => {
  return request({
    method: 'POST',
    url: '/theclass/buyComboClass',
    data
  })
}

// 获取所有购买大课时
export const allBuyBigClass = data => {
  return request({
    method: 'POST',
    url: '/theclass/getBuyComboClass',
    data
  })
}

// 小课时过没过期
export const outDataClass = data => {
  return request({
    method: 'POST',
    url: '/theclass/getBuyTheClass',
    data
  })
}

// 小课时记录写入
export const jilvClass = data => {
  return request({
    method: 'POST',
    url: '/theclass/userLearnClass',
    data
  })
}
// 观看小课时返回看课时间和结束时间
export const learntime = data => {
  return request({
    method: 'POST',
    url: '/theclass/userLearnClass',
    data
  })
}
